package com.lagou.cl.core;

import java.util.List;


public class StandardServer implements Lifecycle {


	private List<StandardService> standardServices;

	@Override
	public void init() {
		//初始化service
		for (StandardService service : this.standardServices) {
			service.init();
		}
	}

	@Override
	public void start() {
		for (StandardService service : this.standardServices) {
			service.start();
		}
	}

	public List<StandardService> getStandardServices() {
		return standardServices;
	}

	public void setStandardServices(List<StandardService> standardServices) {
		this.standardServices = standardServices;
	}
}
